;var module = angular.module('CtrlsContent');
module.controller('WenkulistCtrl',['$scope','api_other',function($scope,api_other){
	$scope.listModel = [];
	$scope.selectModel = [];
	$scope.banner = "images/img/bg_lead02.jpg";
	$scope.event = {
		get:function(){
			var obj = {
				catId:localStorage.catId,
			};
			var pro = api_other.ziliaobiaoqian(obj);
			pro.success(function(data){
				if(data.returnCode == 0){
					$scope.listModel = data.returnData;
				}
			});
		},
		select:function(param){
			if(param){
				var obj = {
					userId:localStorage.bls_userId,
					catId:localStorage.catId,
					datumType:param,
					type:1
				};
			}else{
				var obj = {
					userId:localStorage.bls_userId,
					catId:localStorage.catId,
					type:1
				};
			}
			var pro = api_other.ziliao(obj);
			pro.success(function(data){
				if(data.returnCode == 0){
					$scope.selectModel = data.returnData;
				}
			});
		},
	};
	$scope.event.get();
}]);